package 狂神多线程;

//模拟网络延时
public class TestSleep implements Runnable{

    @Override
    public void run() {
        System.out.println("线程执行3秒后执行");
    }

    public static void main(String[] args) {
        TestSleep testSleep = new TestSleep();
        Thread thread = new Thread(testSleep);
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        thread.start();

    }
}
